# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo5.01
# Description:
# Author:       asus
# Date:         2019/2/28
#-------------------------------------------------------------------------------


s1 = "hello world"
#在字符串中索引
print(s1[0])
print(s1[2])
#在字符串中使用分片
print(s1[6:9])
print(s1[6:])
print(s1[::2])

s2 = "abc"
#在字符串中使用乘法
print(10 * s2)
print(s2 * 5)
#在字符串中使用in运算符
print('b' in s2)
print('x' not in s2)

print(len(s1))
print(min(s2))
print(max(s2))